/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * TrialBrewFrame.java
 *
 * Created on Jun 22, 2011, 4:19:56 PM
 */

package gbbmgmt;

import org.jdesktop.application.Action;
import java.util.*;
import javax.swing.JOptionPane;
import java.text.*;

/**
 *
 * @author dchapman
 */
public class TrialBrewFrame extends javax.swing.JFrame {

    public ArrayList<String[]> Beers;

    public String POCSV = "";
    public String POText = "";

    NumberFormat f2 = new DecimalFormat("#0.00");
    NumberFormat f1 = new DecimalFormat("#0");

    /** Creates new form TrialBrewFrame */
    public TrialBrewFrame() {
        initComponents();
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jLabel2 = new javax.swing.JLabel();
        jComboBoxBeer = new javax.swing.JComboBox();
        jLabel3 = new javax.swing.JLabel();
        jTextFieldNumber = new javax.swing.JTextField();
        jButtonAdd = new javax.swing.JButton();
        jSeparator1 = new javax.swing.JSeparator();
        jScrollPane1 = new javax.swing.JScrollPane();
        jTextArea1 = new javax.swing.JTextArea();
        jSeparator2 = new javax.swing.JSeparator();
        jButtonExit = new javax.swing.JButton();
        jButtonReset = new javax.swing.JButton();
        jButtonRun = new javax.swing.JButton();

        setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
        setName("Form"); // NOI18N

        org.jdesktop.application.ResourceMap resourceMap = org.jdesktop.application.Application.getInstance(gbbmgmt.GBBMGMTApp.class).getContext().getResourceMap(TrialBrewFrame.class);
        jLabel2.setText(resourceMap.getString("jLabel2.text")); // NOI18N
        jLabel2.setName("jLabel2"); // NOI18N

        jComboBoxBeer.setName("jComboBoxBeer"); // NOI18N

        jLabel3.setText(resourceMap.getString("jLabel3.text")); // NOI18N
        jLabel3.setName("jLabel3"); // NOI18N

        jTextFieldNumber.setName("jTextFieldNumber"); // NOI18N

        javax.swing.ActionMap actionMap = org.jdesktop.application.Application.getInstance(gbbmgmt.GBBMGMTApp.class).getContext().getActionMap(TrialBrewFrame.class, this);
        jButtonAdd.setAction(actionMap.get("AddBeer")); // NOI18N
        jButtonAdd.setText(resourceMap.getString("jButtonAdd.text")); // NOI18N
        jButtonAdd.setName("jButtonAdd"); // NOI18N

        jSeparator1.setName("jSeparator1"); // NOI18N

        jScrollPane1.setName("jScrollPane1"); // NOI18N

        jTextArea1.setColumns(20);
        jTextArea1.setRows(5);
        jTextArea1.setName("jTextArea1"); // NOI18N
        jScrollPane1.setViewportView(jTextArea1);

        jSeparator2.setName("jSeparator2"); // NOI18N

        jButtonExit.setAction(actionMap.get("ExitTrialBrew")); // NOI18N
        jButtonExit.setText(resourceMap.getString("jButtonExit.text")); // NOI18N
        jButtonExit.setName("jButtonExit"); // NOI18N

        jButtonReset.setAction(actionMap.get("Reset")); // NOI18N
        jButtonReset.setText(resourceMap.getString("jButtonReset.text")); // NOI18N
        jButtonReset.setName("jButtonReset"); // NOI18N

        jButtonRun.setAction(actionMap.get("RunReport")); // NOI18N
        jButtonRun.setText(resourceMap.getString("jButtonRun.text")); // NOI18N
        jButtonRun.setName("jButtonRun"); // NOI18N

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createSequentialGroup()
                        .addComponent(jLabel2)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jComboBoxBeer, javax.swing.GroupLayout.PREFERRED_SIZE, 251, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(jLabel3)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jTextFieldNumber, javax.swing.GroupLayout.DEFAULT_SIZE, 81, Short.MAX_VALUE))
                    .addGroup(layout.createSequentialGroup()
                        .addComponent(jButtonAdd)
                        .addGap(373, 373, 373)))
                .addContainerGap())
            .addComponent(jSeparator1, javax.swing.GroupLayout.DEFAULT_SIZE, 482, Short.MAX_VALUE)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 461, Short.MAX_VALUE)
                .addGap(11, 11, 11))
            .addComponent(jSeparator2, javax.swing.GroupLayout.DEFAULT_SIZE, 482, Short.MAX_VALUE)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jButtonRun)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jButtonReset)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 256, Short.MAX_VALUE)
                .addComponent(jButtonExit)
                .addGap(11, 11, 11))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel2)
                    .addComponent(jComboBoxBeer, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel3)
                    .addComponent(jTextFieldNumber, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jButtonAdd)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jSeparator1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 289, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jSeparator2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jButtonRun)
                    .addComponent(jButtonReset)
                    .addComponent(jButtonExit))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    /**
    * @param args the command line arguments
    */
    public static void main(String args[]) {
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new TrialBrewFrame().setVisible(true);
            }
        });
    }

    public void LoadList(){
        //Remove all vendors in list.
        jComboBoxBeer.removeAllItems();

        DBA.openDBCon();
        Beers = DBA.RunSQLQuery("SELECT BId,BName FROM Beer WHERE InProduction='1'");
        DBA.closeDBCon();

        for(String s[] : Beers){
            jComboBoxBeer.addItem(s[1]);
        }

        refresh();
    }

    public void refresh(){
        jTextArea1.setText(POText);
        jComboBoxBeer.setSelectedIndex(0);
        jTextFieldNumber.setText("1");
    }



    @Action
    public void ExitTrialBrew() {
        dispose();
    }

    @Action
    public void AddBeer() {
        //Add beer to the list.
        String Itm = jComboBoxBeer.getSelectedItem().toString();

        for (String s[] : Beers){
            if(s[1].equals(Itm)){
                if(!jTextFieldNumber.getText().equals("")){
                    POCSV += s[0] + "," + jTextFieldNumber.getText() + ",";
                    POText += jTextFieldNumber.getText() + "x Brews of " + s[1] + "\n";
                }
            }
        }
        refresh();
    }

    @Action
    public void Reset() {
        int response = JOptionPane.showConfirmDialog(null,
                "This will clear the current order, continue?",
                "Warning",JOptionPane.WARNING_MESSAGE);

        if (response == 0){
            POCSV = "";
            POText = "";
            refresh();
        }
    }

    @Action
    public void RunReport() {
        //Open Database Connection.
        DBA.openDBCon();

        //trim last comma off of POCSV
        String NewPOCSV = POCSV.substring(0,POCSV.length() - 1);

        //split string into an array.
        String[] sarry = NewPOCSV.split(",");
        int count = 0;

        //set up malt and hop Arrays.
        //Fill in arrays with all malts and hops in system.
        //DBA.LoadInventory purposely pushes index 0 to index 1 so we can later use it as a mark.
        ArrayList<String[]> Malts = DBA.LoadInventory("SELECT MaltID,MaltName,MaltOnHand,MaltSpoken,MaltBagLbs,MaltOnOrder FROM Malt");
        ArrayList<String[]> Hops = DBA.LoadInventory("SELECT HID,HopName,HopOnHand,HopSpoken,HopBagLbs,HopOnOrder FROM Hops");
        ArrayList<String[]> Vendors = DBA.LoadInventory("SELECT VID,VName FROM Vendors");
        ArrayList<String[]> StMalt = DBA.LoadInventory("SELECT StockID,TableID FROM StockCode WHERE WHID = '100'");
        ArrayList<String[]> StHops = DBA.LoadInventory("SELECT StockID,TableID FROM StockCode WHERE WHID = '110'");

        while (count < sarry.length){

            //Get Recipe information from the Beer ID.
            DBA.GetBeerData(sarry[count]);
            DBA.GetRecipesData(Integer.toString(DBA.RecipeID));

            //Initialize index variable.
            String Index = "";
            //Calculate total gravity in brew.
            double GTot = (((double)DBA.RGT - 1) * 1000) * (double)DBA.RVol * 31;
            
            //Calculate total number of malt and hops needed for given brew.
            if(DBA.Mpct01>0){
                Index = Integer.toString(DBA.MName01);
                DBA.GetMaltData(Index);
                //Determine Lbs needed for brew of specific malt.
                double LBS = ((((double)DBA.Mpct01/100) * GTot)/(((double)DBA.MaltEff/100)*(double)DBA.MaltSG));
                //Multiply in number of brews to LBS needed.
                LBS = LBS * Integer.parseInt(sarry[count+1].trim());
                for (String s[] : Malts){
                    if(s[1].equals(Index)){
                        //Add lbs to index 0 of malts.
                        double tmp = Double.valueOf(s[0].trim()).doubleValue() + LBS;
                        s[0] = f2.format(tmp);
                    }
                }
            }
            if(DBA.Mpct02>0){
                Index = Integer.toString(DBA.MName02);
                DBA.GetMaltData(Index);
                double LBS = ((((double)DBA.Mpct02/100) * GTot)/(((double)DBA.MaltEff/100)*(double)DBA.MaltSG));
                //Multiply in number of brews to LBS needed.
                LBS = LBS * Integer.parseInt(sarry[count+1].trim());
                for (String s[] : Malts){
                    if(s[1].equals(Index)){
                        //Add lbs to index 0 of malts.
                        double tmp = Double.valueOf(s[0].trim()).doubleValue() + LBS;
                        s[0] = f2.format(tmp);
                    }
                }
            }
            if(DBA.Mpct03>0){
                Index = Integer.toString(DBA.MName03);
                DBA.GetMaltData(Index);
                double LBS = ((((double)DBA.Mpct03/100) * GTot)/(((double)DBA.MaltEff/100)*(double)DBA.MaltSG));
                //Multiply in number of brews to LBS needed.
                LBS = LBS * Integer.parseInt(sarry[count+1].trim());
                for (String s[] : Malts){
                    if(s[1].equals(Index)){
                        double tmp = Double.valueOf(s[0].trim()).doubleValue() + LBS;
                        s[0] = f2.format(tmp);
                    }
                }
            }
            if(DBA.Mpct04>0){
                Index = Integer.toString(DBA.MName04);
                DBA.GetMaltData(Index);
                double LBS = ((((double)DBA.Mpct04/100) * GTot)/(((double)DBA.MaltEff/100)*(double)DBA.MaltSG));
                //Multiply in number of brews to LBS needed.
                LBS = LBS * Integer.parseInt(sarry[count+1].trim());
                for (String s[] : Malts){
                    if(s[1].equals(Index)){
                        double tmp = Double.valueOf(s[0].trim()).doubleValue() + LBS;
                        s[0] = f2.format(tmp);
                    }
                }
            }
            if(DBA.Mpct05>0){
                Index = Integer.toString(DBA.MName05);
                DBA.GetMaltData(Index);
                double LBS = ((((double)DBA.Mpct05/100) * GTot)/(((double)DBA.MaltEff/100)*(double)DBA.MaltSG));
                //Multiply in number of brews to LBS needed.
                LBS = LBS * Integer.parseInt(sarry[count+1].trim());
                for (String s[] : Malts){
                    if(s[1].equals(Index)){
                        double tmp = Double.valueOf(s[0].trim()).doubleValue() + LBS;
                        s[0] = f2.format(tmp);
                    }
                }
            }
            if(DBA.Mpct06>0){
                Index = Integer.toString(DBA.MName06);
                DBA.GetMaltData(Index);
                double LBS = ((((double)DBA.Mpct06/100) * GTot)/(((double)DBA.MaltEff/100)*(double)DBA.MaltSG));
                //Multiply in number of brews to LBS needed.
                LBS = LBS * Integer.parseInt(sarry[count+1].trim());
                for (String s[] : Malts){
                    if(s[1].equals(Index)){
                        double tmp = Double.valueOf(s[0].trim()).doubleValue() + LBS;
                        s[0] = f2.format(tmp);
                    }
                }
            }
            if(DBA.Mpct07>0){
                Index = Integer.toString(DBA.MName07);
                DBA.GetMaltData(Index);
                double LBS = ((((double)DBA.Mpct07/100) * GTot)/(((double)DBA.MaltEff/100)*(double)DBA.MaltSG));
                //Multiply in number of brews to LBS needed.
                LBS = LBS * Integer.parseInt(sarry[count+1].trim());
                for (String s[] : Malts){
                    if(s[1].equals(Index)){
                        double tmp = Double.valueOf(s[0].trim()).doubleValue() + LBS;
                        s[0] = f2.format(tmp);
                    }
                }
            }
            if(DBA.Mpct08>0){
                Index = Integer.toString(DBA.MName08);
                DBA.GetMaltData(Index);
                double LBS = ((((double)DBA.Mpct08/100) * GTot)/(((double)DBA.MaltEff/100)*(double)DBA.MaltSG));
                //Multiply in number of brews to LBS needed.
                LBS = LBS * Integer.parseInt(sarry[count+1].trim());
                for (String s[] : Malts){
                    if(s[1].equals(Index)){
                        double tmp = Double.valueOf(s[0].trim()).doubleValue() + LBS;
                        s[0] = f2.format(tmp);
                    }
                }
            }
            if(DBA.Mpct09>0){
                Index = Integer.toString(DBA.MName09);
                DBA.GetMaltData(Index);
                double LBS = ((((double)DBA.Mpct09/100) * GTot)/(((double)DBA.MaltEff/100)*(double)DBA.MaltSG));
                //Multiply in number of brews to LBS needed.
                LBS = LBS * Integer.parseInt(sarry[count+1].trim());
                for (String s[] : Malts){
                    if(s[1].equals(Index)){
                        double tmp = Double.valueOf(s[0].trim()).doubleValue() + LBS;
                        s[0] = f2.format(tmp);
                    }
                }
            }
            if(DBA.Mpct10>0){
                Index = Integer.toString(DBA.MName10);
                DBA.GetMaltData(Index);
                double LBS = ((((double)DBA.Mpct10/100) * GTot)/(((double)DBA.MaltEff/100)*(double)DBA.MaltSG));
                //Multiply in number of brews to LBS needed.
                LBS = LBS * Integer.parseInt(sarry[count+1].trim());
                for (String s[] : Malts){
                    if(s[1].equals(Index)){
                        double tmp = Double.valueOf(s[0].trim()).doubleValue() + LBS;
                        s[0] = f2.format(tmp);
                    }
                }
            }

            //Now load hop arrays.
            if(DBA.hlbs01>0){
                Index = Integer.toString(DBA.HName01);
                double LBS = (double)DBA.hlbs01;
                LBS = LBS * Integer.parseInt(sarry[count+1].trim());
                for (String s[] : Hops){
                    if(s[1].equals(Index)){
                        double tmp = Double.valueOf(s[0].trim()).doubleValue() + LBS;
                        s[0] = f2.format(tmp);
                    }
                }
            }
            if(DBA.hlbs02>0){
                Index = Integer.toString(DBA.HName02);
                double LBS = (double)DBA.hlbs02;
                LBS = LBS * Integer.parseInt(sarry[count+1].trim());
                for (String s[] : Hops){
                    if(s[1].equals(Index)){
                        double tmp = Double.valueOf(s[0].trim()).doubleValue() + LBS;
                        s[0] = f2.format(tmp);
                    }
                }
            }
            if(DBA.hlbs03>0){
                Index = Integer.toString(DBA.HName03);
                double LBS = (double)DBA.hlbs03;
                LBS = LBS * Integer.parseInt(sarry[count+1].trim());
                for (String s[] : Hops){
                    if(s[1].equals(Index)){
                        double tmp = Double.valueOf(s[0].trim()).doubleValue() + LBS;
                        s[0] = f2.format(tmp);
                    }
                }
            }
            if(DBA.hlbs04>0){
                Index = Integer.toString(DBA.HName04);
                double LBS = (double)DBA.hlbs04;
                LBS = LBS * Integer.parseInt(sarry[count+1].trim());
                for (String s[] : Hops){
                    if(s[1].equals(Index)){
                        double tmp = Double.valueOf(s[0].trim()).doubleValue() + LBS;
                        s[0] = f2.format(tmp);
                    }
                }
            }
            if(DBA.hlbs05>0){
                Index = Integer.toString(DBA.HName05);
                double LBS = (double)DBA.hlbs05;
                LBS = LBS * Integer.parseInt(sarry[count+1].trim());
                for (String s[] : Hops){
                    if(s[1].equals(Index)){
                        double tmp = Double.valueOf(s[0].trim()).doubleValue() + LBS;
                        s[0] = f2.format(tmp);
                    }
                }
            }
            if(DBA.hlbs06>0){
                Index = Integer.toString(DBA.HName06);
                double LBS = (double)DBA.hlbs06;
                LBS = LBS * Integer.parseInt(sarry[count+1].trim());
                for (String s[] : Hops){
                    if(s[1].equals(Index)){
                        double tmp = Double.valueOf(s[0].trim()).doubleValue() + LBS;
                        s[0] = f2.format(tmp);
                    }
                }
            }
            if(DBA.hlbs07>0){
                Index = Integer.toString(DBA.HName07);
                double LBS = (double)DBA.hlbs07;
                LBS = LBS * Integer.parseInt(sarry[count+1].trim());
                for (String s[] : Hops){
                    if(s[1].equals(Index)){
                        double tmp = Double.valueOf(s[0].trim()).doubleValue() + LBS;
                        s[0] = f2.format(tmp);
                    }
                }
            }
            if(DBA.hlbs08>0){
                Index = Integer.toString(DBA.HName08);
                double LBS = (double)DBA.hlbs08;
                LBS = LBS * Integer.parseInt(sarry[count+1].trim());
                for (String s[] : Hops){
                    if(s[1].equals(Index)){
                        double tmp = Double.valueOf(s[0].trim()).doubleValue() + LBS;
                        s[0] = f2.format(tmp);
                    }
                }
            }
            if(DBA.hlbs09>0){
                Index = Integer.toString(DBA.HName09);
                double LBS = (double)DBA.hlbs09;
                LBS = LBS * Integer.parseInt(sarry[count+1].trim());
                for (String s[] : Hops){
                    if(s[1].equals(Index)){
                        double tmp = Double.valueOf(s[0].trim()).doubleValue() + LBS;
                        s[0] = f2.format(tmp);
                    }
                }
            }
            if(DBA.hlbs10>0){
                Index = Integer.toString(DBA.HName10);
                double LBS = (double)DBA.hlbs10;
                LBS = LBS * Integer.parseInt(sarry[count+1].trim());
                for (String s[] : Hops){
                    if(s[1].equals(Index)){
                        double tmp = Double.valueOf(s[0].trim()).doubleValue() + LBS;
                        s[0] = f2.format(tmp);
                    }
                }
            }

            //Increment count two positions.
            count += 2;
        }

        //Report Purchase Order to Screen.
        ReportFrame newFrame = new ReportFrame();
        newFrame.pack();
        newFrame.setLocation(250,250);
        newFrame.setVisible(true);
        newFrame.setTitle("Trial Brew Shortages");

        //Create CSVs for the records.
        String HopCSV = "";
        String MaltCSV = "";

        for(String s[] : Malts){
            if((Double.valueOf(s[0].trim()).doubleValue() > 0)){
                double lbs = Double.valueOf(s[0].trim()).doubleValue();
                double available = Double.valueOf(s[3].trim()).doubleValue();
                double allocated = Double.valueOf(s[4].trim()).doubleValue();
                double bag = Double.valueOf(s[5].trim()).doubleValue();
                double onOrder = Double.valueOf(s[6].trim()).doubleValue();
                double value = lbs - ((available + onOrder) - allocated);
                if(value<0) value=0;
                double bags = Math.ceil(value/bag);
                if(value != 0){
                    MaltCSV += s[1] + "," + f1.format(bags) + ",";
                }
            }
        }
        for(String s[] : Hops){
            if((Double.valueOf(s[0].trim()).doubleValue() > 0)){
                double lbs = Double.valueOf(s[0].trim()).doubleValue();
                double available = Double.valueOf(s[3].trim()).doubleValue();
                double allocated = Double.valueOf(s[4].trim()).doubleValue();
                double bag = Double.valueOf(s[5].trim()).doubleValue();
                double onOrder = Double.valueOf(s[6].trim()).doubleValue();
                double value = lbs - ((available + onOrder) - allocated);
                if(value<0) value=0;
                double bags = Math.ceil(value/bag);
                if(value != 0){
                    HopCSV += s[1] + "," + f1.format(bags) + ",";
                }
            }
        }

        DBA.closeDBCon();

        //Trimm off trailing commas in arrays.
        
        String MCSV = "";
        String HCSV = "";

        if (MaltCSV.length() > 0) MCSV = MaltCSV.substring(0,MaltCSV.length() - 1);
        if (HopCSV.length() > 0) HCSV = HopCSV.substring(0,HopCSV.length() - 1);

        newFrame.DisplayTrialKit(MCSV, HCSV, NewPOCSV);
        

    }

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton jButtonAdd;
    private javax.swing.JButton jButtonExit;
    private javax.swing.JButton jButtonReset;
    private javax.swing.JButton jButtonRun;
    private javax.swing.JComboBox jComboBoxBeer;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JSeparator jSeparator1;
    private javax.swing.JSeparator jSeparator2;
    private javax.swing.JTextArea jTextArea1;
    private javax.swing.JTextField jTextFieldNumber;
    // End of variables declaration//GEN-END:variables

}
